<?php 
namespace app\home\validate; 

use think\Validate;

class Index extends Base
{
    protected $rule = [
        'use_time'        => 'require|strtrim:use_time',
        'issue'           => 'require|strtrim:issue',
        'destination'     => 'require|strtrim:destination',
        'size_id'         => 'require|number|intconvert:size_id',
        'item_type_id'    => 'require|number|intconvert:item_type_id',
    ];

    protected $message = [
        'use_time'        => '请选择用箱时间',
        'issue'           => '请填写始发地',
        'destination'     => '请填写目的地',
        'size_id'         => '请选择箱柜尺寸',
        'item_type_id'    => '请选择物品类型',
    ];
    
    protected $scene = [
        'send_goods' => ['use_time','issue','destination','size_id','item_type_id'],
    ];
}
 ?>
